package im.jsmith.android.bloxbreaker;

import org.anddev.andengine.engine.options.EngineOptions.ScreenOrientation;
import org.anddev.andengine.opengl.texture.source.AssetTextureSource;
import org.anddev.andengine.opengl.texture.source.ITextureSource;
import org.anddev.andengine.ui.activity.BaseSplashActivity;

import android.app.Activity;

/**
 * @author Jordon Smith
 */
public class SplashActivity extends BaseSplashActivity {
	
	@Override
	protected Class <?extends Activity> getFollowUpActivity() {
		return MenuActivity.class;
	}
	
	@Override
	protected ScreenOrientation getScreenOrientation() {
		return ScreenOrientation.LANDSCAPE;
	}

	@Override
	protected ITextureSource onGetSplashTextureSource() {
		return new AssetTextureSource(this, "gfx/andengine.png");
	}
	
	@Override
	protected float getSplashDuration() {
		return 1;
	}
	
	@Override
	protected float getSplashScaleFrom() {
		return 0.3f;
	}

	@Override
	protected float getSplashScaleTo() {
		return 0.7f;
	}
}